function [obsdata] = datanwsgrp1BC3E ()

clc;
clear;

%nwsgrp1true   = csvread('/home/ayan/Desktop/Dropbox/BC3E/newsgroup/label1.csv');
%nwsgrp1labels = csvread('/home/ayan/Desktop/Dropbox/BC3E/newsgroup/mbase1.csv');

%save nwsgrp1;

labels      = load('nwsgrp1.mat');
%labels     = load('nwsgrp1labels.mat');

N = size(labels.nwsgrp1labels,1);    

for i=1:2

k     = size(unique(labels.nwsgrp1labels(:,i)),1); % number of classes    
temp  = zeros(N,k);
temp  = temp';
temp2 = labels.nwsgrp1labels(:,i)+k*[0:N-1]';
temp(temp2) = 1;
dataw1(i).w = temp';

end

for j=1:2

k_hat = size(unique(labels.nwsgrp1labels(:,i+j)),1); % number of clusters        
temp  = zeros(N,k_hat);
temp  = temp';
temp2 = labels.nwsgrp1labels(:,i+j)+k_hat*[0:N-1]';
temp(temp2) = 1;
dataw2(j).w = temp';

end

obsdata.dataw1    = dataw1;
obsdata.dataw2    = dataw2;
obsdata.truelabel = labels.nwsgrp1true;
obsdata.r1        = 2;
obsdata.r2        = 2;

end
